package com.atguigu.spzx.manager.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysRoleMenuMapper {
    List<Long> findMenuIdsByRoleId(Long roleId);

    void deleteByRoleId(Long roleId);

    void assignMenus2Role(@Param("roleId") Long roleId, @Param("menuIds")List<Long> menuIds);
}
